<template>
    <div style="position: relative;height: 100%;">
        <a-spin size="large" tip="Loading..." style="position: absolute;top: 30%;left: 50%;"/>
    </div>
</template>

<script>
    export default {
        props : {
            callback : { type : String, required : true }
        },
        mounted() {
            this.$store.commit('delAccessToken');
            this.$store.commit('delUserInfo');
            this.$router.push({ path : this.callback }).then().catch(() => {});
        }
    }
</script>
